package cn.hipac.mall.before;

/**
 * Created by xiaogu on 2017/4/8.
 */
public class GetterSetterExample {
    /**
     * Age of the person. Water is wet.
     */
    private int age = 10;

    /**
     * Name of the person.
     */
    private String name;

    private boolean isMan;

    private Boolean isAlive;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isMan() {
        return isMan;
    }

    public void setMan(boolean man) {
        isMan = man;
    }

    public Boolean getAlive() {
        return isAlive;
    }

    public void setAlive(Boolean alive) {
        isAlive = alive;
    }

    /*@Override
    public String toString() {
        return "GetterSetterExample(" +
                "age=" + age +
                ", name=" + name  +
                ", isMan=" + isMan +
                ", isAlive=" + isAlive +
                ')';
    }*/

    @Override
    public String toString() {
        return "GetterSetterExample{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", isMan=" + isMan +
                ", isAlive=" + isAlive +
                '}';
    }
}
